//
// Created by 刘昱杉2020 on 2023/4/15.
//

#ifndef CAR_SONAR_H
#define CAR_SONAR_H

#include "main.h"
#include "gpio.h"


//void sonar_init();
//uint32_t sonar_distance();
//void user_TIM7_IRQHandler();


void HCSR04_Init(void);
float HCSR04_ReadDistance(void);
void USR_GPIO_EXTI_Callback(uint16_t GPIO_Pin);
double HCSR04_GetDistance();


#endif //CAR_SONAR_H
